package com.ququ.syb.application.controller;

import com.ququ.common.result.ResultJson;
import com.ququ.syb.application.service.ApplicationPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ApplicationPermissionController {
    @Autowired
    private ApplicationPermissionService applicationPermissionService;

    @RequestMapping("/permission/controller")
    public ResultJson checkApplicationControllerAccessPermission(@RequestParam String controller,
                                                                 @RequestParam String appcode){
        return applicationPermissionService.checkApplicationControllerAccessPermission(controller, appcode);
    }
}
